<?php
if(isset($message) == TRUE) :
?>
<div class="notification <?php echo $message['type'] ?> png_bg">
    <a class="close" href="#"><img alt="close" title="Đóng" src="<?php echo Url::site('assets/admin/images/icons/cross_grey_small.png') ?>"></a>
    <div><?php echo $message['content'] ?></div>
</div>
<?php
endif;
?>

<div class="clear"></div>
<div class="content-box"><!-- Start Content Box -->
    <div class="content-box-header">
        <h3>Thiết Lập Hệ Thống</h3>
        <div class="clear"></div>
    </div> <!-- End .content-box-header -->
    <div class="content-box-content">
        <form method="post" action="<?php echo Url::site('admin/setting') ?>">
            <fieldset> <!-- Set class to "column-left" or "column-right" on fieldsets to divide the form into columns -->
<?php
if(isset ($settings) == TRUE && count($settings) > 0) :
    foreach($settings as $obj) :
?>
                <p>
                    <label><?php echo $obj->description ?></label>
                    <input type="text" name="setting[<?php echo $obj->id ?>][<?php echo $obj->key ?>]" class="text-input medium-input" value="<?php echo $obj->value ?>" />
                </p>
<?php
    endforeach;
endif;
?>
                <p>
                    <input type="submit" name="submit" value="Lưu" class="button">
                </p>
            </fieldset>
            <div class="clear"></div><!-- End .clear -->
        </form>
    </div> <!-- End .content-box-content -->
</div>
<script type="text/javascript">
$(function(){
    Sidebar.setActive(Sidebar.menu.setting, 0);
});
</script>